public interface ServerHttpRequest extends HttpRequest, HttpInputMessage
Modifier and Type | Method and Description |
---|---|
ServerHttpAsyncRequestControl |
getAsyncRequestControl(ServerHttpResponse response)
Return a control that allows putting the request in asynchronous mode so the
response remains open until closed explicitly from the current or another thread.
|
java.net.InetSocketAddress |
getLocalAddress()
Return the address on which the request was received.
|
java.security.Principal |
getPrincipal()
Return a
Principal instance containing the name of the
authenticated user. |
java.net.InetSocketAddress |
getRemoteAddress()
Return the address of the remote client.
|
getMethod, getMethodValue, getURI
getBody
getHeaders
java.security.Principal getPrincipal()
Principal
instance containing the name of the
authenticated user. If the user has not been authenticated, the method returns
null
.java.net.InetSocketAddress getLocalAddress()
java.net.InetSocketAddress getRemoteAddress()
ServerHttpAsyncRequestControl getAsyncRequestControl(ServerHttpResponse response)